import request from '@/utils/request'

// 查询银行列表
export function loanApprovalList(query) {
  return request({
    url: '/config/loanApproval/list',
    method: 'get',
    params: query
  })
}

// 添加银行
export function loanApprovalAdd(data) {
  return request({
    url: '/config/loanApproval/add',
    method: 'POST', 
    data: data
  })
}
// 编辑银行
export function loanApprovalEdit(data) {
  return request({
    url: '/config/loanApproval/edit',
    method: 'POST',
    data: data
  })
}

// 删除银行
export function loanApprovalDelBatch(data) {
  return request({
    url: '/config/loanApproval/delBatch',
    method: 'POST',
    data: data
  })
}

//查询公司下的产品
export function getProductByOffice(query) {
  return request({
    url: '/product/loanProduct/getProductByOffice',
    method: 'get',
    params: query
  })
}
//查询部门下的用户
export function deptUserTree(query) {
  return request({
    url: '/common/deptUserTree',
    method: 'get',
    params: query
  })
}

